 <script language="javascript">
	function goback(){
		document.forms[0].action='<?=site_url("job_management/goto_companies_view")?>';
		document.forms[0].submit();
	}
	function updatecompany(id){
		document.forms[0].action='<?=site_url("job_management/save_update_company")?>/'+ id;
		document.forms[0].submit();
	}
</script>
	<h3 class="capture">Job Management</h3>
    <div id="wrap">
    
    <div id="tdd_selected">
    	<div class="dd_selected">Update Company</div>
        <div class="dd_view">
        <form action="" method="post" enctype="multipart/form-data">
        <table width="420" border="0" align="center" cellpadding="0" cellspacing="0" id="addUser">
              <tr>
                <td width="100">&nbsp;</td>
                <td width="233">&nbsp;</td>
                <td width="87">&nbsp;</td>
              </tr>
              <tr>
                <td>Name:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtname" name="txtname" maxlength="100" class="textbox" value="<?=$company['com_name'];?>" /></div></td>
                <td><font color="#FF0000">*</font></td>
              </tr>
              <tr>
                <td>Description:</td>
                <td><div class="bordrTextbox"><textarea id="txtdesc" name="txtdesc" class="textbox"><? echo $company['com_desc']; ?></textarea></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Address:</td>
                <td><div class="bordrTextbox"><textarea id="txtaddress" name="txtaddress" class="textbox"><? echo $company['com_address'];?></textarea></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Phone:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtphone" name="txtphone" maxlength="50" value="<?=$company['com_phone'];?>" class="textbox" /></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Fax:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtfax" name="txtfax" maxlength="30" value="<?=$company['com_fax'];?>" class="textbox" /></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Email:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtemail" name="txtemail" maxlength="100" value="<?=$company['com_email'];?>" class="textbox" /></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Contact Name:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtcontact" name="txtcontact" maxlength="50" value="<?=$company['com_contactname'];?>" class="textbox" /></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Website:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtwebsite" name="txtwebsite" maxlength="100" value="<?=$company['com_website'];?>" class="textbox" /></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
            	<td>Logo:</td>
                <td>
                  <input type="file" id="imagefile" name="imagefile" />
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
            <td colspan="3" align="center">
				<? if(isset($company['com_logo_type'])){ 
				  		$comid=$company['com_id'];
				  ?>
                  
                    <input type="checkbox" id="chkdelete" name="chkdelete" />Delete
					<img src="<?=site_url("job_management/showcompanylogo/$comid")?>" width="60"/>
                  <? } ?></td>
            </tr>
              <tr>
                <td>&nbsp;</td>
                <td>
                <font color="#FF0000"><?php echo $error_message;?></font><br><br>
                
                <input type="button" name="btnback" value="Back" class="button_back_end" onclick="goback()" />
           		<input type="button" name="btnsave" value="Save" class="button_back_end" onclick="updatecompany('<?=$company['com_id'];?>')" />
            	
                </td>
                <td>&nbsp;</td>
              </tr>
            </table>        </form>
		</div>
        
    </div> 
      
  </div>


